package com.briup.es.demos.mapper;

import com.briup.es.demos.bean.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    // 根据用户名查询用户信息，返回值为User类对象
    @Select("select id,username,password,status from es_user " +
            "where username=#{username}")
    User queryByUsername(String username);
}
